<?php
include("./include/config.inc.php");

$i = 0;
$editorArray = "";
$select = "SELECT editor
             FROM contain
            WHERE menuId = 11";
$selectRes = mysql_query($select);
while($Row = mysql_fetch_array($selectRes))
{
  $editorArray[$i]['editor']   = $Row['editor'];
  $i++;
}

$menuArray = array();
$k = 0;
$selectMenu = "SELECT sliderId,menuId,sliderImg
                 FROM slider
                WHERE menuId = 11";
$selectMenuRes = mysql_query($selectMenu);
while($menuRow = mysql_fetch_array($selectMenuRes))
{
  $menuArray[$k]['sliderId']   = $menuRow['sliderId'];
  $menuArray[$k]['sliderImg'] = $menuRow['sliderImg'];
  $k++;
}

include("./bottom.php");
$smarty->assign("editorArray",$editorArray);
$smarty->assign("menuArray",$menuArray);
$smarty->display("danidhariya.tpl");
?>